{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) {\n    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  }\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport classNames from 'classnames';\nimport RcInput from 'rc-input';\nimport { composeRef } from \"rc-util/es/ref\";\nimport React, { forwardRef, useContext, useEffect, useRef } from 'react';\nimport { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport SizeContext from '../config-provider/SizeContext';\nimport { FormItemInputContext, NoFormStyle } from '../form/context';\nimport { NoCompactStyle, useCompactItemContext } from '../space/Compact';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport warning from '../_util/warning';\nimport useRemovePasswordTimeout from './hooks/useRemovePasswordTimeout';\nimport { hasPrefixSuffix } from './utils';\n// CSSINJS\nimport useStyle from './style';\nexport function fixControlledValue(value) {\n  if (typeof value === 'undefined' || value === null) {\n    return '';\n  }\n  return String(value);\n}\nexport function resolveOnChange(target, e, onChange, targetValue) {\n  if (!onChange) {\n    return;\n  }\n  var event = e;\n  if (e.type === 'click') {\n    // Clone a new target for event.\n    // Avoid the following usage, the setQuery method gets the original value.\n    //\n    // const [query, setQuery] = React.useState('');\n    // <Input\n    //   allowClear\n    //   value={query}\n    //   onChange={(e)=> {\n    //     setQuery((prevStatus) => e.target.value);\n    //   }}\n    // />\n    var currentTarget = target.cloneNode(true);\n    // click clear icon\n    event = Object.create(e, {\n      target: {\n        value: currentTarget\n      },\n      currentTarget: {\n        value: currentTarget\n      }\n    });\n    currentTarget.value = '';\n    onChange(event);\n    return;\n  }\n  // Trigger by composition event, this means we need force change the input value\n  if (targetValue !== undefined) {\n    event = Object.create(e, {\n      target: {\n        value: target\n      },\n      currentTarget: {\n        value: target\n      }\n    });\n    target.value = targetValue;\n    onChange(event);\n    return;\n  }\n  onChange(event);\n}\nexport function triggerFocus(element, option) {\n  if (!element) {\n    return;\n  }\n  element.focus(option);\n  // Selection content\n  var _ref = option || {},\n    cursor = _ref.cursor;\n  if (cursor) {\n    var len = element.value.length;\n    switch (cursor) {\n      case 'start':\n        element.setSelectionRange(0, 0);\n        break;\n      case 'end':\n        element.setSelectionRange(len, len);\n        break;\n      default:\n        element.setSelectionRange(0, len);\n        break;\n    }\n  }\n}\nvar Input = /*#__PURE__*/forwardRef(function (props, ref) {\n  var _classNames, _classNames2, _classNames4;\n  var customizePrefixCls = props.prefixCls,\n    _props$bordered = props.bordered,\n    bordered = _props$bordered === void 0 ? true : _props$bordered,\n    customStatus = props.status,\n    customSize = props.size,\n    customDisabled = props.disabled,\n    onBlur = props.onBlur,\n    onFocus = props.onFocus,\n    suffix = props.suffix,\n    allowClear = props.allowClear,\n    addonAfter = props.addonAfter,\n    addonBefore = props.addonBefore,\n    className = props.className,\n    onChange = props.onChange,\n    rest = __rest(props, [\"prefixCls\", \"bordered\", \"status\", \"size\", \"disabled\", \"onBlur\", \"onFocus\", \"suffix\", \"allowClear\", \"addonAfter\", \"addonBefore\", \"className\", \"onChange\"]);\n  var _React$useContext = React.useContext(ConfigContext),\n    getPrefixCls = _React$useContext.getPrefixCls,\n    direction = _React$useContext.direction,\n    input = _React$useContext.input;\n  var prefixCls = getPrefixCls('input', customizePrefixCls);\n  var inputRef = useRef(null);\n  // Style\n  var _useStyle = useStyle(prefixCls),\n    _useStyle2 = _slicedToArray(_useStyle, 2),\n    wrapSSR = _useStyle2[0],\n    hashId = _useStyle2[1];\n  // ===================== Compact Item =====================\n  var _useCompactItemContex = useCompactItemContext(prefixCls, direction),\n    compactSize = _useCompactItemContex.compactSize,\n    compactItemClassnames = _useCompactItemContex.compactItemClassnames;\n  // ===================== Size =====================\n  var size = React.useContext(SizeContext);\n  var mergedSize = compactSize || customSize || size;\n  // ===================== Disabled =====================\n  var disabled = React.useContext(DisabledContext);\n  var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n  // ===================== Status =====================\n  var _useContext = useContext(FormItemInputContext),\n    contextStatus = _useContext.status,\n    hasFeedback = _useContext.hasFeedback,\n    feedbackIcon = _useContext.feedbackIcon;\n  var mergedStatus = getMergedStatus(contextStatus, customStatus);\n  // ===================== Focus warning =====================\n  var inputHasPrefixSuffix = hasPrefixSuffix(props) || !!hasFeedback;\n  var prevHasPrefixSuffix = useRef(inputHasPrefixSuffix);\n  useEffect(function () {\n    var _a;\n    if (inputHasPrefixSuffix && !prevHasPrefixSuffix.current) {\n      process.env.NODE_ENV !== \"production\" ? warning(document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input), 'Input', \"When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ\") : void 0;\n    }\n    prevHasPrefixSuffix.current = inputHasPrefixSuffix;\n  }, [inputHasPrefixSuffix]);\n  // ===================== Remove Password value =====================\n  var removePasswordTimeout = useRemovePasswordTimeout(inputRef, true);\n  var handleBlur = function handleBlur(e) {\n    removePasswordTimeout();\n    onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);\n  };\n  var handleFocus = function handleFocus(e) {\n    removePasswordTimeout();\n    onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);\n  };\n  var handleChange = function handleChange(e) {\n    removePasswordTimeout();\n    onChange === null || onChange === void 0 ? void 0 : onChange(e);\n  };\n  var suffixNode = (hasFeedback || suffix) && /*#__PURE__*/React.createElement(React.Fragment, null, suffix, hasFeedback && feedbackIcon);\n  // Allow clear\n  var mergedAllowClear;\n  if (typeof allowClear === 'object' && (allowClear === null || allowClear === void 0 ? void 0 : allowClear.clearIcon)) {\n    mergedAllowClear = allowClear;\n  } else if (allowClear) {\n    mergedAllowClear = {\n      clearIcon: /*#__PURE__*/React.createElement(CloseCircleFilled, null)\n    };\n  }\n  return wrapSSR( /*#__PURE__*/React.createElement(RcInput, Object.assign({\n    ref: composeRef(ref, inputRef),\n    prefixCls: prefixCls,\n    autoComplete: input === null || input === void 0 ? void 0 : input.autoComplete\n  }, rest, {\n    disabled: mergedDisabled || undefined,\n    onBlur: handleBlur,\n    onFocus: handleFocus,\n    suffix: suffixNode,\n    allowClear: mergedAllowClear,\n    className: classNames(className, compactItemClassnames),\n    onChange: handleChange,\n    addonAfter: addonAfter && /*#__PURE__*/React.createElement(NoCompactStyle, null, /*#__PURE__*/React.createElement(NoFormStyle, {\n      override: true,\n      status: true\n    }, addonAfter)),\n    addonBefore: addonBefore && /*#__PURE__*/React.createElement(NoCompactStyle, null, /*#__PURE__*/React.createElement(NoFormStyle, {\n      override: true,\n      status: true\n    }, addonBefore)),\n    inputClassName: classNames((_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-sm\"), mergedSize === 'small'), _defineProperty(_classNames, \"\".concat(prefixCls, \"-lg\"), mergedSize === 'large'), _defineProperty(_classNames, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _defineProperty(_classNames, \"\".concat(prefixCls, \"-borderless\"), !bordered), _classNames), !inputHasPrefixSuffix && getStatusClassNames(prefixCls, mergedStatus), hashId),\n    affixWrapperClassName: classNames((_classNames2 = {}, _defineProperty(_classNames2, \"\".concat(prefixCls, \"-affix-wrapper-sm\"), mergedSize === 'small'), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-affix-wrapper-lg\"), mergedSize === 'large'), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-affix-wrapper-rtl\"), direction === 'rtl'), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-affix-wrapper-borderless\"), !bordered), _classNames2), getStatusClassNames(\"\".concat(prefixCls, \"-affix-wrapper\"), mergedStatus, hasFeedback), hashId),\n    wrapperClassName: classNames(_defineProperty({}, \"\".concat(prefixCls, \"-group-rtl\"), direction === 'rtl'), hashId),\n    groupClassName: classNames((_classNames4 = {}, _defineProperty(_classNames4, \"\".concat(prefixCls, \"-group-wrapper-sm\"), mergedSize === 'small'), _defineProperty(_classNames4, \"\".concat(prefixCls, \"-group-wrapper-lg\"), mergedSize === 'large'), _defineProperty(_classNames4, \"\".concat(prefixCls, \"-group-wrapper-rtl\"), direction === 'rtl'), _classNames4), getStatusClassNames(\"\".concat(prefixCls, \"-group-wrapper\"), mergedStatus, hasFeedback), hashId)\n  })));\n});\nexport default Input;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","CloseCircleFilled","classNames","RcInput","composeRef","React","forwardRef","useContext","useEffect","useRef","ConfigContext","DisabledContext","SizeContext","FormItemInputContext","NoFormStyle","NoCompactStyle","useCompactItemContext","getMergedStatus","getStatusClassNames","warning","useRemovePasswordTimeout","hasPrefixSuffix","useStyle","fixControlledValue","value","String","resolveOnChange","target","onChange","targetValue","event","type","currentTarget","cloneNode","create","undefined","triggerFocus","element","option","focus","cursor","len","setSelectionRange","Input","props","ref","customizePrefixCls","prefixCls","bordered","customStatus","status","customSize","size","customDisabled","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rest","getPrefixCls","direction","input","inputRef","wrapSSR","hashId","compactSize","compactItemClassnames","mergedSize","mergedDisabled","contextStatus","hasFeedback","feedbackIcon","mergedStatus","inputHasPrefixSuffix","prevHasPrefixSuffix","_a","current","process","env","NODE_ENV","document","activeElement","removePasswordTimeout","handleBlur","handleFocus","handleChange","suffixNode","createElement","Fragment","mergedAllowClear","clearIcon","assign","autoComplete","override","inputClassName","affixWrapperClassName","wrapperClassName","groupClassName"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/input/Input.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport classNames from 'classnames';\nimport RcInput from 'rc-input';\nimport { composeRef } from \"rc-util/es/ref\";\nimport React, { forwardRef, useContext, useEffect, useRef } from 'react';\nimport { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport SizeContext from '../config-provider/SizeContext';\nimport { FormItemInputContext, NoFormStyle } from '../form/context';\nimport { NoCompactStyle, useCompactItemContext } from '../space/Compact';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport warning from '../_util/warning';\nimport useRemovePasswordTimeout from './hooks/useRemovePasswordTimeout';\nimport { hasPrefixSuffix } from './utils';\n// CSSINJS\nimport useStyle from './style';\nexport function fixControlledValue(value) {\n  if (typeof value === 'undefined' || value === null) {\n    return '';\n  }\n  return String(value);\n}\nexport function resolveOnChange(target, e, onChange, targetValue) {\n  if (!onChange) {\n    return;\n  }\n  let event = e;\n  if (e.type === 'click') {\n    // Clone a new target for event.\n    // Avoid the following usage, the setQuery method gets the original value.\n    //\n    // const [query, setQuery] = React.useState('');\n    // <Input\n    //   allowClear\n    //   value={query}\n    //   onChange={(e)=> {\n    //     setQuery((prevStatus) => e.target.value);\n    //   }}\n    // />\n    const currentTarget = target.cloneNode(true);\n    // click clear icon\n    event = Object.create(e, {\n      target: {\n        value: currentTarget\n      },\n      currentTarget: {\n        value: currentTarget\n      }\n    });\n    currentTarget.value = '';\n    onChange(event);\n    return;\n  }\n  // Trigger by composition event, this means we need force change the input value\n  if (targetValue !== undefined) {\n    event = Object.create(e, {\n      target: {\n        value: target\n      },\n      currentTarget: {\n        value: target\n      }\n    });\n    target.value = targetValue;\n    onChange(event);\n    return;\n  }\n  onChange(event);\n}\nexport function triggerFocus(element, option) {\n  if (!element) {\n    return;\n  }\n  element.focus(option);\n  // Selection content\n  const {\n    cursor\n  } = option || {};\n  if (cursor) {\n    const len = element.value.length;\n    switch (cursor) {\n      case 'start':\n        element.setSelectionRange(0, 0);\n        break;\n      case 'end':\n        element.setSelectionRange(len, len);\n        break;\n      default:\n        element.setSelectionRange(0, len);\n        break;\n    }\n  }\n}\nconst Input = /*#__PURE__*/forwardRef((props, ref) => {\n  const {\n      prefixCls: customizePrefixCls,\n      bordered = true,\n      status: customStatus,\n      size: customSize,\n      disabled: customDisabled,\n      onBlur,\n      onFocus,\n      suffix,\n      allowClear,\n      addonAfter,\n      addonBefore,\n      className,\n      onChange\n    } = props,\n    rest = __rest(props, [\"prefixCls\", \"bordered\", \"status\", \"size\", \"disabled\", \"onBlur\", \"onFocus\", \"suffix\", \"allowClear\", \"addonAfter\", \"addonBefore\", \"className\", \"onChange\"]);\n  const {\n    getPrefixCls,\n    direction,\n    input\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('input', customizePrefixCls);\n  const inputRef = useRef(null);\n  // Style\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  // ===================== Compact Item =====================\n  const {\n    compactSize,\n    compactItemClassnames\n  } = useCompactItemContext(prefixCls, direction);\n  // ===================== Size =====================\n  const size = React.useContext(SizeContext);\n  const mergedSize = compactSize || customSize || size;\n  // ===================== Disabled =====================\n  const disabled = React.useContext(DisabledContext);\n  const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n  // ===================== Status =====================\n  const {\n    status: contextStatus,\n    hasFeedback,\n    feedbackIcon\n  } = useContext(FormItemInputContext);\n  const mergedStatus = getMergedStatus(contextStatus, customStatus);\n  // ===================== Focus warning =====================\n  const inputHasPrefixSuffix = hasPrefixSuffix(props) || !!hasFeedback;\n  const prevHasPrefixSuffix = useRef(inputHasPrefixSuffix);\n  useEffect(() => {\n    var _a;\n    if (inputHasPrefixSuffix && !prevHasPrefixSuffix.current) {\n      process.env.NODE_ENV !== \"production\" ? warning(document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input), 'Input', `When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ`) : void 0;\n    }\n    prevHasPrefixSuffix.current = inputHasPrefixSuffix;\n  }, [inputHasPrefixSuffix]);\n  // ===================== Remove Password value =====================\n  const removePasswordTimeout = useRemovePasswordTimeout(inputRef, true);\n  const handleBlur = e => {\n    removePasswordTimeout();\n    onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);\n  };\n  const handleFocus = e => {\n    removePasswordTimeout();\n    onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);\n  };\n  const handleChange = e => {\n    removePasswordTimeout();\n    onChange === null || onChange === void 0 ? void 0 : onChange(e);\n  };\n  const suffixNode = (hasFeedback || suffix) && /*#__PURE__*/React.createElement(React.Fragment, null, suffix, hasFeedback && feedbackIcon);\n  // Allow clear\n  let mergedAllowClear;\n  if (typeof allowClear === 'object' && (allowClear === null || allowClear === void 0 ? void 0 : allowClear.clearIcon)) {\n    mergedAllowClear = allowClear;\n  } else if (allowClear) {\n    mergedAllowClear = {\n      clearIcon: /*#__PURE__*/React.createElement(CloseCircleFilled, null)\n    };\n  }\n  return wrapSSR( /*#__PURE__*/React.createElement(RcInput, Object.assign({\n    ref: composeRef(ref, inputRef),\n    prefixCls: prefixCls,\n    autoComplete: input === null || input === void 0 ? void 0 : input.autoComplete\n  }, rest, {\n    disabled: mergedDisabled || undefined,\n    onBlur: handleBlur,\n    onFocus: handleFocus,\n    suffix: suffixNode,\n    allowClear: mergedAllowClear,\n    className: classNames(className, compactItemClassnames),\n    onChange: handleChange,\n    addonAfter: addonAfter && /*#__PURE__*/React.createElement(NoCompactStyle, null, /*#__PURE__*/React.createElement(NoFormStyle, {\n      override: true,\n      status: true\n    }, addonAfter)),\n    addonBefore: addonBefore && /*#__PURE__*/React.createElement(NoCompactStyle, null, /*#__PURE__*/React.createElement(NoFormStyle, {\n      override: true,\n      status: true\n    }, addonBefore)),\n    inputClassName: classNames({\n      [`${prefixCls}-sm`]: mergedSize === 'small',\n      [`${prefixCls}-lg`]: mergedSize === 'large',\n      [`${prefixCls}-rtl`]: direction === 'rtl',\n      [`${prefixCls}-borderless`]: !bordered\n    }, !inputHasPrefixSuffix && getStatusClassNames(prefixCls, mergedStatus), hashId),\n    affixWrapperClassName: classNames({\n      [`${prefixCls}-affix-wrapper-sm`]: mergedSize === 'small',\n      [`${prefixCls}-affix-wrapper-lg`]: mergedSize === 'large',\n      [`${prefixCls}-affix-wrapper-rtl`]: direction === 'rtl',\n      [`${prefixCls}-affix-wrapper-borderless`]: !bordered\n    }, getStatusClassNames(`${prefixCls}-affix-wrapper`, mergedStatus, hasFeedback), hashId),\n    wrapperClassName: classNames({\n      [`${prefixCls}-group-rtl`]: direction === 'rtl'\n    }, hashId),\n    groupClassName: classNames({\n      [`${prefixCls}-group-wrapper-sm`]: mergedSize === 'small',\n      [`${prefixCls}-group-wrapper-lg`]: mergedSize === 'large',\n      [`${prefixCls}-group-wrapper-rtl`]: direction === 'rtl'\n    }, getStatusClassNames(`${prefixCls}-group-wrapper`, mergedStatus, hasFeedback), hashId)\n  })));\n});\nexport default Input;"],"mappings":";;AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC;IAAE,IAAII,MAAM,CA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